import request from '@/utils/request'

// 查询用户资质信息列表
export function listSourceInfo(query) {
  return request({
    url: '/member/sourceInfo/list',
    method: 'get',
    params: query
  })
}
// 查询用户资质信息  卡片
export function listSourceCardInfo(query) {
  return request({
    url: '/member/sourceInfo/card',
    method: 'get',
    params: query
  })
}

// 查询用户资质信息详细
export function getSourceInfo(uid) {
  return request({
    url: '/member/sourceInfo/' + uid,
    method: 'get'
  })
}

// 新增用户资质信息
export function addSourceInfo(data) {
  return request({
    url: '/member/sourceInfo',
    method: 'post',
    data: data
  })
}

// 修改用户资质信息
export function updateSourceInfo(data) {
  return request({
    url: '/member/sourceInfo',
    method: 'put',
    data: data
  })
}

// 删除和修改用户资质信息
export function delAndupSourceInfo(data) {
  return request({
    url: '/member/sourceInfo/del',
    method: 'post',
    data: data
  })
}


export function getCity(query) {
  return request({
    url: '/member/sourceInfo/city',
    method: 'get',
    params: query
  })
}
